package com.log;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

    private static final Logger logger = LogManager.getLogger("example");

    @GetMapping("/")
    public String index(@RequestHeader("x-hsbc-hack-string") String hackString) {
        logger.info("Received a hack string: "+hackString);
        return "OK";
    }

}
